const { apiPre } = require('./config');
module.exports = (app, server, compiler) => {
  const modulePre = `${apiPre}/system`;
  app.get(`${modulePre}/check`, (req, res) => {
    const { keywords = '' } = req.query;
    res.json({
      code: keywords.length > 6 ? 200 : 500
    })
  })
  app.get(`${modulePre}/userInfo`, (req, res) => {
    res.json({
      code: 200,
      data: {
        username: 'yby1991',
        nickName: '桐溪漂流',
        phone: '13461355728',
        email: '13461355728@163.com',
        description: '这里是随便的一点自我介绍'
      }
    })
  })
}